<div id="body">
        <div class="box" id="news">
          <div class="box-t"><div class="box-r"><div class="box-b"><div class="box-l">
          <div class="box-tr"><div class="box-br"><div class="box-bl"><div class="box-tl">

            <h2>NEWS &amp; EVENTS</h2>

		<?php
			foreach($events->result() as $row) {
				echo '<h3>'.$row->EDate.'</h3>';
				$this->load->helper('smiley');
				echo '<p>'.parse_smileys($row->EventDescription, $base.'/'.$this->config->item('img').'/smileys').'</p>';
			}
		?>
		<h3><?php echo anchor('user_control/events','more...', array('style'=>'float:right; color:#FFAE00; text-decoration:none; font-size:12px;')) ?></h3><br>

          </div></div></div></div>
          </div></div></div></div>
        </div>
        <div class="box" id="top">
          <div class="box-t"><div class="box-r"><div class="box-b"><div class="box-l">
          <div class="box-tr"><div class="box-br"><div class="box-bl"><div class="box-tl">

            <h2>TOP 10</h2>

            <h3>CS Subjects</h3>

            <ul>
		<?php
			foreach($top10->result() as $row) {
				$subj = $row->SubjectName;
				echo '<li>'; echo anchor('user_control/subjects_profile/'.$subj, $subj, array('style'=>'color:#FFEA00; font-size:12px;'));
				echo ' - '.$row->SubjectTitle.'</a></li>';
			}
		?>
            </ul>
          </div></div></div></div>
          </div></div></div></div>
        </div>
        <div class="box" id="new">
          <div class="box-t"><div class="box-r"><div class="box-b"><div class="box-l">
          <div class="box-tr"><div class="box-br"><div class="box-bl"><div class="box-tl">

            <h2>NEW SUBMISSIONS</h2>
            
		<?php
			foreach($top5->result() as $row) {
				echo '<p><h3>'.$row->TimeOfSubmission.'</h3></p>';
				echo anchor('user_control/subjects_profile/'.$row->Subject.'/'.$row->ResourceIDNo,$row->Subject.' - '.$row->Title);
			}
		?>            
	
            <p><h3><?php echo anchor('user_control/submissions','more...', array('style'=>'float:right; color:#FFAE00; text-decoration:none; font-size:12px;')) ?></h3></p>
          </div></div></div></div>
          </div></div></div></div>
</div>
<div class="clear"> </div>

